import service from '@/utils/http.js'

// /sass-test/public/index.php/api/coupon/getCouponActivity  优惠券活动
export const getCouponActivity = (params) => {
  return service({
    url: 'api/coupon/getCouponActivity',
    method: 'post',
    data : params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/coupon/getCouponIndex 优惠券首页
export const getCouponIndex = (params) => {
  return service({
    url: 'api/coupon/getCouponIndex',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/coupon/getCoupon 获取优惠券信息
export const getCoupon = (params) => {
  return service({
    url: 'api/coupon/getCoupon',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/coupon/insertCouponRecord 领取优惠券
export const insertCouponRecord = (params) => {
  return service({
    url: 'api/coupon/insertCouponRecord',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/coupon/getCouponDetail 优惠券详情
export const getCouponDetail = (params) => {
  return service({
    url: 'api/coupon/getCouponDetail',
    method: 'post',
    data: params
  }) 
}

// 接口ID：17781506
// 接口地址：/sass-test/public/index.php/api/coupon/$getCouponRecord 优惠券领取记录
export const getCouponRecord = (params) => {
  return service({
    url: 'api/coupon/getCouponRecord',
    method: 'post',
    data: params
  }) 
}

// /sass-test/public/index.php/api/coupon/getMyCoupon  我的优惠券
export const getMyCoupon = (params) => {
  return service({
    url: 'api/coupon/getMyCoupon',
    method: 'post',
    data: params
  }) 
}


// 抽奖活动列表
// GET /sass-test/public/index.php/api/lottery/getLotteryActivity
// 接口ID：62956917
// 接口地址：https://www.apifox.cn/web/project/866979/apis/api-62956917
export const getLotteryActivity = (params) => {
  return service({
    url: 'api/lottery/getLotteryActivity',
    method: 'post',
    data: params
  }) 
}

// 抽奖活动列表
// GET /sass-test/public/index.php/api/lottery/getLotteryIndex
// 接口ID：62956917
// 接口地址：https://www.apifox.cn/web/project/866979/apis/api-62956917
export const getLotteryIndex = (params) => {
  return service({
    url: 'api/lottery/getLotteryIndex',
    method: 'post',
    data: params
  }) 
}


// 抽奖
// GET /sass-test/public/index.php/api/lottery/start_lottery
// 接口ID：62956917
// 接口地址：https://www.apifox.cn/web/project/866979/apis/api-62956917
export const start_lottery = (params) => {
  return service({
    url: 'api/lottery/start_lottery',
    method: 'post',
    data: params
  }) 
}

// 抽奖
// GET /sass-test/public/index.php/api/lottery/getLotteryRecord
// 接口ID：62956917
// 接口地址：https://www.apifox.cn/web/project/866979/apis/api-62956917
export const getLotteryRecord = (params) => {
  return service({
    url: 'api/lottery/getLotteryRecord',
    method: 'post',
    data: params
  }) 
}

// 我的奖品
// GET /sass-test/public/index.php/api/lottery/getLotterOrder
// 接口ID：62956917
// 接口地址：https://www.apifox.cn/web/project/866979/apis/api-62956917
export const getLotterOrder = (params) => {
  return service({
    url: 'api/lottery/getLotterOrder',
    method: 'post',
    data: params
  }) 
}

// 我的奖品
// GET /sass-test/public/index.php/api/lottery/start_free_lottery
// 接口ID：62956917
// 接口地址：https://www.apifox.cn/web/project/866979/apis/api-62956917
export const start_free_lottery = (params) => {
  return service({
    url: 'api/lottery/start_free_lottery',
    method: 'post',
    data: params
  }) 
}